﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassLibrary.Data;
using System.Data;

namespace ClassLibrary.DAO
{
    public class TblTypeDAO
    {
         private DBService _db = null;

         public TblTypeDAO(string ConnectionString)
         {
            _db = new DBService(ConnectionString);
         }

         public DataTable GetAll()
         {
             DataTable dt = null;
             try
             {
                 dt = _db.ExeSP_DataTable("Select * from TblType", false, CommandType.Text);
             }
             catch (Exception ex)
             {
                 throw ex;
             }
             return dt;
         }
    }
}
